// Author: Ivan Chau
package uk.ac.cam.kcic2.math;

public class RotationX extends Rotation {
	
	private final double radians;

	public RotationX(double theta){
		super(new double[][]{
				{1,0,0,0},
				{0,Math.cos(theta),-Math.sin(theta),0},
				{0,Math.sin(theta),Math.cos(theta),0},
				{0,0,0,1}
		});
		radians = theta;
	}
	
	public RotationX inverse(){
		return new RotationX(-radians);
	}
}
